<?php

$_CLASS['queryCLS'] = "class_php/queryCLS.php";


class caricaLista extends Module
{
	var $socket = 0;
	var $analyzeArray = 1;
	var $analyzeError = 1;
	var $connDB = 1;
	var $func = 1;
	var $funcDB = 0;
	var $sqlFunc = 1;
	var $request = array();
	var $smarty = 1;
	var $session = array();
	var $impBase = array();
	var $fldError = array();
	var $usrError = array();
	var $sysError = array();
	var $usrInfo = array();
	var $usrInfoFuncJS = '';
	var $usrInfoValueBtn = '';
	var $extClass = array();
	var $appLog = 1;
	var $lastPageNo = 0;
	var $menu = 1;
	var $security = 1;
	
	function start()
	{
		//$this->menu = "dashboard";
		//$this->smarty->assign("voceMenu","dashboard");
		//$this->class_federmanager->testDB();
		
// 		$this->queryCLS->loadCampagne('');

		if ( $this->request["save"] == "S" )
		{
			if ($this->queryCLS->importAnagrafica())
			{
					$this->usrInfo[] = "Operazione eseguita.";
					return;
			}
			

		}
		
		$this->fillValue("idCampagna|oreLavorate|minutiLavorati|note", $this->request);
		$this->fillValue("idCampagnaLS|clienteLS|campagnaLS", $this->request);
	}
	
	function show()
	{		
		//$this->smarty->assign("ajax","yes");
		
		$this->smarty->assign("mod","campagne");
		$this->smarty->assign("do","caricaLista");
		$this->smarty->assign("page","home");

		$this->smarty->display($this->session["ruolo"]."/campagne/caricaLista.tpl.html");
	}
}

?> 
 
 
